home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ IE Default URLs.xpl < prev    next >
Text File  |  2003-11-19  |  2KB  |  79 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="4"
  4. "UIPATH"="Internet\Internet Explorer\URL Handling"
  5. "NAME"="System URLs"
  6. "VERSION"="1.23"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Blank Page"
  9. "TEXT 2"="Navi. Canceled"
  10. "TEXT 3"="Navi. Failed"
  11. "TEXT 4"="Offline Failed"
  12. "DESCRIPTION 1"="Blank Page: The URL if a blank page should be displayed (default: "res://mshtml.dll/blank.htm")."
  13. "DESCRIPTION 2"="Navigation Canceled: The URL if naviagtion has been cancelled (default: "res://shdocvw.dll/navcancl.htm")."
  14. "DESCRIPTION 3"="Navigation Failed: The URL if IE couldn't complete a naviagation request ("res://shdocvw.dll/navcancl.htm")."
  15. "DESCRIPTION 4"="Offline Failed: The URL to be used if the requested URL couldn't be loaded in offline-mode ("res://shdocvw.dll/offcancl.htm")."
  16. "DESCRIPTION 5"=""
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"=" "
  21.  
  22.  
  23.  
  24. sP="HKLM\Software\Microsoft\Internet Explorer\AboutURLs\"
  25. vB="blank"
  26. vNC="NavigationCanceled"
  27. vNF="NavigationFailure"
  28. vOI="OfflineInformation"
  29. Sub Plugin_Initialize 
  30.  if RegPathExists(sp) then
  31.   s=RegReadValue(sp&vb)
  32.   SetUIElement 1,s
  33.  
  34.   s=RegReadValue(sp&vnc)
  35.   SetUIElement 2,s
  36.  
  37.   s=RegReadValue(sp&vnf)
  38.   SetUIElement 3,s
  39.  
  40.   s=RegReadValue(sp&voi)
  41.   SetUIElement 4,s
  42.  else
  43.   Disable
  44.  end if 
  45. End Sub
  46.  
  47. Sub Plugin_CheckData(ElementIndex)
  48. End Sub
  49.  
  50. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  51.  bOkay=true
  52.  
  53.  for i=1 to 4 
  54.      s=GetUIElement(i)
  55.      if len(s)<=0 then
  56.         Call MsgError("Element #" & i & ": Please enter a valid URL or, to use the default values, copy the URLs from the description box.")
  57.         bOkay=false
  58.      end if
  59.  next
  60.  
  61.  
  62.  if bOkay=true then
  63.     s=GetUIElement(1)
  64.     Call RegWriteValue(sp&vb,s,1)
  65.  
  66.     s=GetUIElement(2)
  67.     Call RegWriteValue(sp&vnc,s,1)
  68.  
  69.     s=GetUIElement(3)
  70.     Call RegWriteValue(sp&vnf,s,1)
  71.  
  72.     s=GetUIElement(4)
  73.     Call RegWriteValue(sp&voi,s,1)
  74.  end if
  75. End Sub
  76.  
  77. Sub Plugin_Terminate 
  78. End Sub
  79.